import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';

import { MenuService } from '../core/menu/menu.service';
import { CloudSharedModule } from '../shared/shared.module';
import { AuthGuard } from '../core/auth/auth-guard.service';
import { AuthService } from '../core/auth/auth.service';
import { routes } from './routes';
import { ModalModule } from 'ngx-bootstrap/modal';
import { PagesModule } from './pages/pages.module';
import { User } from '../core/auth/user.service';

@NgModule({
  imports: [
    CloudSharedModule,
    RouterModule.forRoot(routes),
    ModalModule.forRoot(),
    PagesModule,
  ],
  exports: [
    RouterModule
  ],
  providers: [User, AuthGuard, AuthService]
})

export class RoutesModule {
  constructor(private menuService: MenuService) {
  }
}
